home *** CD-ROM | disk | FTP | other *** search
- Path: news.oanet.com!dialin3
- From: scorpion@portal.connect.ab.ca
- Newsgroups: comp.lang.c
- Subject: How can you make this work?
- Date: Sun, 14 Apr 96 13:11:08 GMT
- Organization: Central News Services
- Message-ID: <4kr886$13t@hermes.oanet.com>
- NNTP-Posting-Host: dialin3.connect.ab.ca
- Summary: How can you make this work?
- X-Newsreader: News Xpress Version 1.0 Beta #4
-
- I need to know why this gives an 'Illegal Pointer
- Arithmetic' error ; It's supposed to be a pixel write routine:
-
- void putpixel(short x,short y,unsigned char colour)
- { char far *Startofvidmem;
- char far *Location; /* Address of where to write the
- pixel*/
- Startofvidmem = 0xA000;
-
- Location = Startofvidmem + (y*320) + x;
- *Location = colour;
- }
-
- Thanx in advance!
- John Smith
-